<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>content_addtop_new.js"></script>
<div class="pad-lr-10">
<form name="searchform" action="" method="get">
		<input type="hidden" value='pass_game' name="m"> 
		<input type="hidden" value="manage" name="c"> 
		<input type="hidden" value="user_game_list" name="a">
		<table width="100%" cellspacing="0" class="search-form">
			<tbody>
				<tr>
					<td>
						<div class="explain-col">
							<?php echo L('user_name')?>:<input name="user_name" class="input-text" value="<?php echo $_GET['user_name']?>" type="text" size="20">
							<?php echo L('name')?>:<?php echo form::select($passGameList,$_GET['pass_game_id'],' name = "pass_game_id" ','请选择')?> 
							<?php echo L('is_success')?>:<?php echo form::select(array('-1'=>'未通过','1'=>'通过'),$_GET['is_success'],' name = "is_success" ','请选择')?>
							<?php echo L('platform')?>:<?php echo form::select(array('1'=>'安卓','2'=>'IOS','3'=>'微信'),$_GET['platform'],' name = "platform" ','请选择')?>

							&nbsp;&nbsp;&nbsp;<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
<form name="myform" action="?m=order&c=manage&a=del" method="post" onsubmit="return confirm('<?php echo L('confirm')?>')">
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th align="center">ID</th>
			<th align="center"><?php echo L('user_name')?></th>
			<th align="center"><?php echo L('name')?></th>
			<th align="center"><?php echo L('pass_game_pic')?></th>
			<th align="center"><?php echo L('is_success')?></th>
			<th align="center"><?php echo L('times')?></th>
			<th align="center"><?php echo L('platform')?></th>
		</tr>
	</thead>
<tbody>
<?php
if(!empty($lists)){
	foreach($lists as $k=>$v) {
?>
    <tr>
		<td align="center"><?php echo $v['id']?></td>
		<td align="center"><?php echo $v['user_name']?$v['user_name']:'<font color="red">（未设置）</font>';?></td>
		<td align="center"><?php echo $v['pass_name']?$v['pass_name']:'<font color="red">（未设置）</font>';?></td>
		<td align="center">
		<?php if(!empty($v['pass_pic'])){?><a href="javascript:image_priview('<?=$v['pass_pic']?>');"><?php echo '<img src="'.$v['pass_pic'].'" height="60px" title="点击可预览：'.$v['user_name'].'用户'.$v['pass_name'].'所看到的选手照片！">';?></a><?php }else{echo '<font color="red">（未设置）</font>';}?>
		</td>
		<td align="center"><?php echo $v['is_success'] == 1?'<font color="green">通过</font>':'<font color="red">未通过</font>';?></td>
		<td align="center"><?=$v['create_time']?></td>
		<td align="center">
		<?php if ($v['platform'] == 1) { echo '安卓';}else if ($v['platform'] == 2){ echo 'IOS';} else if ($v['platform'] == 3){ echo '微信';}else { echo '<font color="red">（未设置）</font>';}?>	
		</td>
    </tr>
<?php
	}
} else {
?>
	<tr><td colspan='11' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
<?php }?>
</tbody>
</table>

<div id="pages"><?php echo $pages?></div>
</div>
</form>
</div>
</body>
</html>